package io.github.talelin.latticy.dto.accept;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
* @author vvboy
*/
@Data
@NoArgsConstructor
public class CreateOrUpdateAcceptDTO{

    @NotEmpty(message = "必须传入用户名")
    @Size(max = 50, message = "用户名不能超过50字符")
    private String username;

    @NotEmpty(message = "必须传入联系电话")
    @Size(max = 50, message = "联系电话不能超过50字符")
    private String phone;


    @NotEmpty(message = "必须传入终端类型")
    @Size(max = 50, message = "终端类型不能超过50字符")
    private String type;

    @NotEmpty(message = "必须传入型号颜色")
    @Size(max = 50, message = "型号颜色不能超过50字符")
    private String model;

    @NotEmpty(message = "必须传入维修性质")
    @Size(max = 50, message = "维修性质不能超过50字符")
    private String nature;

    @NotEmpty(message = "必须传入本机号码")
    @Size(max = 50, message = "本机号码不能超过50字符")
    private String localNumber;

    @NotEmpty(message = "必须传入机身号码")
    @Size(max = 50, message = "机身号码不能超过50字符")
    private String serialNo;

    private String file;

    @NotEmpty(message = "必须传入故障现象描述")
    @Size(max = 50, message = "故障现象描述不能超过50字符")
    private String describe;

    private Date receiveTime;

    @NotEmpty(message = "必须传入受理人")
    @Size(max = 50, message = "受理人不能超过50字符")
    private String acceptedBy;

    @NotEmpty(message = "必须传入备注")
    @Size(max = 50, message = "备注不能超过50字符")
    private String remark;


}
